﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using SqlSugar;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 号船分析
/// </summary>
[Tenant("1300000000001")]
[SugarTable("plan_Sharp", "号船分析")]
[IncreTable]
public partial class PlanSharp : EntityBaseTenantDel
{
    /// <summary>
    /// 船坞
    /// </summary>
    [SugarColumn(ColumnName = "Dock", ColumnDescription = "船坞", Length = 32)]
    public virtual string? Dock { get; set; }

    /// <summary>
    /// 批次
    /// </summary>
    [SugarColumn(ColumnName = "Batch", ColumnDescription = "批次", Length = 64)]
    public virtual string? Batch { get; set; }

    /// <summary>
    /// 船级社
    /// </summary>
    [SugarColumn(ColumnName = "ClassificationSociety", ColumnDescription = "船级社", Length = 64)]
    public virtual string? ClassificationSociety { get; set; }

    /// <summary>
    /// 船型
    /// </summary>
    [SugarColumn(ColumnName = "ShipType", ColumnDescription = "船型", Length = 64)]
    public virtual string? ShipType { get; set; }

    /// <summary>
    /// 船东
    /// </summary>
    [SugarColumn(ColumnName = "ShipOwner", ColumnDescription = "船东", Length = 64)]
    public virtual string? ShipOwner { get; set; }

    /// <summary>
    /// 坞前
    /// </summary>
    [SugarColumn(ColumnName = "DockBefore", ColumnDescription = "坞前", Length = 64)]
    public virtual string? DockBefore { get; set; }

    /// <summary>
    /// 坞后
    /// </summary>
    [SugarColumn(ColumnName = "DockAfter", ColumnDescription = "坞后", Length = 64)]
    public virtual string? DockAfter { get; set; }

    /// <summary>
    /// 船号
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Ch", ColumnDescription = "船号", Length = 32)]
    public virtual string Ch { get; set; }

    /// <summary>
    /// 开工
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "StartSharpTime", ColumnDescription = "开工")]
    public virtual DateTime StartSharpTime { get; set; }

    /// <summary>
    /// 下坞
    /// </summary>
    [SugarColumn(ColumnName = "OffDockTime", ColumnDescription = "下坞")]
    public virtual DateTime? OffDockTime { get; set; }

    /// <summary>
    /// 起浮
    /// </summary>
    [SugarColumn(ColumnName = "FloatTime", ColumnDescription = "起浮")]
    public virtual DateTime? FloatTime { get; set; }

    /// <summary>
    /// 分段量
    /// </summary>
    [SugarColumn(ColumnName = "FdTotal", ColumnDescription = "分段量")]
    public virtual int? FdTotal { get; set; } = 0;

    /// <summary>
    /// 本部
    /// </summary>
    [SugarColumn(ColumnName = "SwsInt", ColumnDescription = "本部")]
    public virtual int? SwsInt { get; set; } = 0;

    /// <summary>
    /// 外协
    /// </summary>
    [SugarColumn(ColumnName = "OtherInt", ColumnDescription = "外协")]
    public virtual int? OtherInt { get; set; } = 0;

    /// <summary>
    /// 最早计划
    /// </summary>
    [SugarColumn(ColumnName = "FirstPStrTime", ColumnDescription = "最早计划")]
    public virtual DateTime? FirstPStrTime { get; set; }

    /// <summary>
    /// 最早开工
    /// </summary>
    [SugarColumn(ColumnName = "FirstStrTime", ColumnDescription = "最早开工")]
    public virtual DateTime? FirstStrTime { get; set; }

    /// <summary>
    /// 最后结束
    /// </summary>
    [SugarColumn(ColumnName = "LastEndTime", ColumnDescription = "最后结束")]
    public virtual DateTime? LastEndTime { get; set; }

    /// <summary>
    /// 进度
    /// </summary>
    [SugarColumn(ColumnName = "Jindu", ColumnDescription = "进度", Length = 32, DecimalDigits = 0)]
    public virtual decimal? Jindu { get; set; } = 0;

    /// <summary>
    /// 状态
    /// </summary>
    [SugarColumn(ColumnDescription = "状态")]
    public FinishStatusEnum StatusAll { get; set; } = FinishStatusEnum.UnFinish;

}
